

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class Courses
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.String _CourseNameEN ="";
public System.String CourseNameEN
{
get { return _CourseNameEN;}
set { _CourseNameEN = value;}
}
System.String _CourseNameAR ="";
public System.String CourseNameAR
{
get { return _CourseNameAR;}
set { _CourseNameAR = value;}
}
System.Int64 _FolderID =-1;
public System.Int64 FolderID
{
get { return _FolderID;}
set { _FolderID = value;}
}
System.DateTime? _DateOfCreation =null;
public System.DateTime? DateOfCreation
{
get { return _DateOfCreation;}
set { _DateOfCreation = value;}
}
System.String _TargetAR ="";
public System.String TargetAR
{
get { return _TargetAR;}
set { _TargetAR = value;}
}
System.String _TargetEN ="";
public System.String TargetEN
{
get { return _TargetEN;}
set { _TargetEN = value;}
}
System.String _OutlineAR ="";
public System.String OutlineAR
{
get { return _OutlineAR;}
set { _OutlineAR = value;}
}
System.String _OutlineEN ="";
public System.String OutlineEN
{
get { return _OutlineEN;}
set { _OutlineEN = value;}
}
System.Int64? _Duration =null;
public System.Int64? Duration
{
get { return _Duration;}
set { _Duration = value;}
}
System.String _Path ="";
public System.String Path
{
get { return _Path;}
set { _Path = value;}
}
System.Int64 _StatusID =-1;
public System.Int64 StatusID
{
get { return _StatusID;}
set { _StatusID = value;}
}
System.String _ObjectivesAR =null;
public System.String ObjectivesAR
{
get { return _ObjectivesAR;}
set { _ObjectivesAR = value;}
}
System.String _ObjectivesEN =null;
public System.String ObjectivesEN
{
get { return _ObjectivesEN;}
set { _ObjectivesEN = value;}
}
System.Boolean _isCaptivate =false;
public System.Boolean isCaptivate
{
get { return _isCaptivate;}
set { _isCaptivate = value;}
}
System.String _CaptivateFile ="";
public System.String CaptivateFile
{
get { return _CaptivateFile;}
set { _CaptivateFile = value;}
}
System.Int64 _LanguageID =-1;
public System.Int64 LanguageID
{
get { return _LanguageID;}
set { _LanguageID = value;}
}
public Courses()
{
}
public Courses(System.String __CourseNameEN,System.String __CourseNameAR,System.Int64 __FolderID,System.DateTime? __DateOfCreation,System.String __TargetAR,System.String __TargetEN,System.String __OutlineAR,System.String __OutlineEN,System.Int64? __Duration,System.String __Path,System.Int64 __StatusID,System.String __ObjectivesAR,System.String __ObjectivesEN,System.Boolean __isCaptivate,System.String __CaptivateFile,System.Int64 __LanguageID)
{
_CourseNameEN = __CourseNameEN;
_CourseNameAR = __CourseNameAR;
_FolderID = __FolderID;
_DateOfCreation = __DateOfCreation;
_TargetAR = __TargetAR;
_TargetEN = __TargetEN;
_OutlineAR = __OutlineAR;
_OutlineEN = __OutlineEN;
_Duration = __Duration;
_Path = __Path;
_StatusID = __StatusID;
_ObjectivesAR = __ObjectivesAR;
_ObjectivesEN = __ObjectivesEN;
_isCaptivate = __isCaptivate;
_CaptivateFile = __CaptivateFile;
_LanguageID = __LanguageID;
}
public Courses(System.Int64 __ID,System.String __CourseNameEN,System.String __CourseNameAR,System.Int64 __FolderID,System.DateTime? __DateOfCreation,System.String __TargetAR,System.String __TargetEN,System.String __OutlineAR,System.String __OutlineEN,System.Int64? __Duration,System.String __Path,System.Int64 __StatusID,System.String __ObjectivesAR,System.String __ObjectivesEN,System.Boolean __isCaptivate,System.String __CaptivateFile,System.Int64 __LanguageID)
{
_ID = __ID;
_CourseNameEN = __CourseNameEN;
_CourseNameAR = __CourseNameAR;
_FolderID = __FolderID;
_DateOfCreation = __DateOfCreation;
_TargetAR = __TargetAR;
_TargetEN = __TargetEN;
_OutlineAR = __OutlineAR;
_OutlineEN = __OutlineEN;
_Duration = __Duration;
_Path = __Path;
_StatusID = __StatusID;
_ObjectivesAR = __ObjectivesAR;
_ObjectivesEN = __ObjectivesEN;
_isCaptivate = __isCaptivate;
_CaptivateFile = __CaptivateFile;
_LanguageID = __LanguageID;
}


             public override bool Equals(object obj)
         {
             if (obj is Courses)
             {
                 Courses newObj = (Courses)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
